package org.yfh.common.page;

import java.util.List;
import lombok.Data;

@Data
public class Page<T> {
  private List<T> data;
  private int pageNum;
  private int pageSize;
  private long total;

  public Page(List<T> data, int pageNum, int pageSize, long total) {
    this.data = data;
    this.pageNum = pageNum;
    this.pageSize = pageSize;
    this.total = total;
  }
}
